import { request } from "@/utils/request";

//  打盘配置
export function reqDapanConfig() {
  return request<DapanConfig>({
    url: "/roomManage/dapan/config/show",
    method: "get"
  });
}

// 打盘配置-更新
export function reqDapanConfigEdit(data: Record<string, any>) {
  return request({
    url: "/roomManage/dapan/config/edit",
    method: "post",
    data
  });
}

// 打盘报表
export function reqDapanReportList(params: Record<string, any>) {
  return request({
    url: "/roomManage/dapan/report/list",
    method: "get",
    params
  });
}

// 打盘报表-删除
export function reqDapanReportDel(data: Record<string, any>) {
  return request({
    url: "/roomManage/dapan/report/del",
    method: "post",
    data
  });
}

// 打盘报表-飞单失败明细
export function reqDapanReportFailDetail(params: Record<string, any>) {
  return request({
    url: "/roomManage/dapan/report/failDetail/list",
    method: "get",
    params
  });
}

// 打盘报表-详情
export function reqDapanReportDetail(params: Record<string, any>) {
  return request({
    url: "/roomManage/dapan/report/detail/list",
    method: "get",
    params
  });
}
